Repository navigation
Conversation
This fixes the anchoring for productions that override orbitsPerTF. - The ramp-up shift was rounded with the orbitsPerTF of the data run, before the --orbitsPerTF override. - With 128 orbits per TF this left the MC timeframes 64 orbits off. - The shift is now recomputed after the override. https://its.cern.ch/jira/browse/O2-7335 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
REQUEST FOR PRODUCTION RELEASES: This will add The following labels are available |
sawenzel
force-pushed
the
o2-7335-firstorbitmc
branch
3 times, most recently
from
November 18, 2026 17:37
8954a02 to
e25fbe9
Compare
This stores the first orbit used by an anchored MC job and its software version in its MCProdInfo object, and provides a new tool mcprodinfo_firstorbit.py that adds the first orbit to existing productions.
- Analysis uses FirstOrbitMC to align its timeframes with the MC.
- McTag is now filled at job time from ALIEN_JDL_PACKAGES.
- A stored FirstOrbitMC is never replaced; a job with a different value keeps it and prints a warning. Only force_overwrite, as used by the tool, replaces it.
- Optional fields a writer leaves empty keep their stored values, e.g. FirstOrbitMC for the harvester with --overwrite.
- If the existing object cannot be read, nothing is published.
- Optional metadata with value None is no longer uploaded as the string "None", and metadata values are URL-escaped.
- Reading an object that lacks a required field no longer raises a TypeError.
- The tool reads FirstOrbitMC per run from the log archives of the run's own jobs, found via MonALISA.
- The software of each run is taken from its masterjob JDL and log archives; runs whose jobs disagree are flagged and skipped.
- Runs without reachable archive are filled, and a sample cross-checked, by rerunning the anchoring with the run's software.
- apply skips runs that already carry the value and stops if a run changed since the scan.
Usage:
mcprodinfo_firstorbit.py scan --tag LHC26h3 -o LHC26h3.json
mcprodinfo_firstorbit.py rerun LHC26h3.json --crosscheck 3
mcprodinfo_firstorbit.py apply LHC26h3.json --comment "FirstOrbitMC added because of O2-7335" --yes
For LHC26h3 the scan gives 60 runs made with MC-prod-2026-v12 (shift 2), 3 runs made with v14 (aligned) and 4 runs without jobs.
https://its.cern.ch/jira/browse/O2-7335
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sawenzel
force-pushed
the
o2-7335-firstorbitmc
branch
from
November 18, 2026 17:52
e25fbe9 to
b7ce77e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes the anchoring for productions that override
orbitsPerTFand records the first orbit of each anchored run, so that analysis can align its timeframes with the MC.The ITS ramp-up shift was rounded with the TF length of the data run (32), before the
--orbitsPerTFoverride was applied. With 128 orbits per TF this left the MC timeframes 64 orbits off. The shift is now recomputed after the override; explicit timeframe IDs (MC-DATA embedding) stay unshifted.In addition, MCProdInfo now carries
FirstOrbitMCand the software version inMcTag. A storedFirstOrbitMCis never replaced, since it describes the data already produced for the run; a job that would use a different first orbit keeps it and prints a warning.AggregatedRunInfowill useFirstOrbitMCinstead of a list of productions (AliceO2Group/AliceO2#16154).The new tool
MC/prodinfo/mcprodinfo_firstorbit.pyaddsFirstOrbitMCto existing productions. It reads the first orbit of each run from its GRID job logs, takes the software from the masterjob JDL and the logs, and skips runs without MC output. Runs without logs are filled, and a sample cross-checked, by rerunning the anchoring with the run's software:For LHC26h3 this gives 60 runs made with MC-prod-2026-v12 (shift 2), 3 runs made with v14 (aligned) and 4 runs without jobs.
Fixes https://its.cern.ch/jira/browse/O2-7335
Assisted by Claude Code.